const { program } = require("commander");

program.option("-x, --xxx", "what the x");
program
  .command("add")
  .description("add a task")
  .action((...args) => {
    const words = args[1].args.join(" ");
    console.log(words);
  });

program.parse(process.argv);
